package com.wyy.multiredis;

import org.springframework.boot.autoconfigure.data.redis.RedisProperties;

/**
 * @Date: 2023/12/13
 * @Author: wyy
 */
public class MultiRedis extends RedisProperties{
    private RedisMode redisMode = RedisMode.single;
    private String redisTemplateName;

    @Override
    public String toString() {
        return "MultiRedis{" +
                "redisMode=" + redisMode +
                ", redisTemplateName='" + redisTemplateName + '\'' +
                "} " + super.toString();
    }

    public RedisMode getRedisMode() {
        return redisMode;
    }

    public void setRedisMode(RedisMode redisMode) {
        this.redisMode = redisMode;
    }

    public String getRedisTemplateName() {
        return redisTemplateName;
    }

    public void setRedisTemplateName(String redisTemplateName) {
        this.redisTemplateName = redisTemplateName;
    }
}
